package com.school.aftersalemanagement.entity;

import com.google.gson.JsonElement;

import java.io.Serializable;
import java.security.Timestamp;
import java.util.Date;

/**
 * Created by winkyle on 2017/11/13.
 */

public class Bike implements Serializable {

     private double log;
     private double lat;
     private int lease_status;
     private int long_lease;
     private int type;
     private int remark_status;
     private String number;
     private String distance;
     private String repair_person;
     private JsonElement failreporting;
     private int riding_times;
     private int repaired_rtimes;
     private int baterry;
     private String address;
     private String color;
     private String remark;
     private String repair_time;

    public double getLog() {
        return log;
    }

    public void setLog(double log) {
        this.log = log;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getRepair_person() {
        if (repair_person == null)
            return "无";
        return repair_person;
    }

    public void setRepair_person(String repair_person) {
        this.repair_person = repair_person;
    }

    public JsonElement getFailreporting() {
        return failreporting;
    }

    public void setFailreporting(JsonElement failreporting) {
        this.failreporting = failreporting;
    }

    public int getRiding_times() {
        return riding_times;
    }

    public void setRiding_times(int riding_times) {
        this.riding_times = riding_times;
    }

    public int getRepaired_rtimes() {
        return repaired_rtimes;
    }

    public void setRepaired_rtimes(int repaired_rtimes) {
        this.repaired_rtimes = repaired_rtimes;
    }

    public int getBaterry() {
        return baterry;
    }

    public void setBaterry(int baterry) {
        this.baterry = baterry;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getRemark() {
        if(remark==null)
            return "：无";
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public String getRepair_time() {
        return repair_time;
    }

    public void setRepair_time(String repair_time) {
        this.repair_time = repair_time;
    }

    public int getLease_status() {
        return lease_status;
    }

    public void setLease_status(int lease_status) {
        this.lease_status = lease_status;
    }

    public int getLong_lease() {
        return long_lease;
    }

    public void setLong_lease(int long_lease) {
        this.long_lease = long_lease;
    }

    public int getType() {
        return type;
    }

    public String getTypeName() {
        if(type==1)
            return "山地车";
        else if(type==2)
            return "双人车";
        else
            return "无类型";
    }



    public void setType(int type) {
        this.type = type;
    }

    public int getRemark_status() {
        return remark_status;
    }

    public void setRemark_status(int remark_status) {
        this.remark_status = remark_status;
    }
}
